package com.shengdai.urms.core.model;

/**
 */
public class UmMenuitem implements java.io.Serializable {
	/**
	 *
	 */
	private static final long	serialVersionUID	= 30016016L;
	public static final String	SHOWTYPE_COOLBUTTON	= "CoolButton";
	public static final String	SHOWTYPE_BUTTON		= "Button";
	public static final String	SHOWTYPE_HREF		= "Href";

	private String				menuitemid;						// 功能项ID
	private String				menuid;							// 功能ID
	private String				showtype;							// 显示类别
	private String				pagetype;							// 页面类别
	private String				jsfunction;						// JS函数
	private String				objectid;							// 页面元素ID
	private String				iconfile;							// 图标文件
	private Float				showorder;							// 显示顺序
	private String				caption;							// 名称
	private String				roleid;							// 角色id,不记录数据库
	private String				admin;								// 是否可管理
	private String				operate;							// 操作
	private String				userid;							// 用户id,不记录数据库
	private String				netinaddr;							// 内网地址
	private String				netoutaddr;						// 外网地址
	private String				paramap;							// 参数映射
	private String				target;							// 目标
	private String				refmenuid;							// 参考连接
	private String				memo;								// 备注

	public String getRefmenuid() {
		return refmenuid;
	}

	public void setRefmenuid(String refmenuid) {
		this.refmenuid = refmenuid;
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	public String getParamap() {
		return paramap;
	}

	public void setParamap(String paramap) {
		this.paramap = paramap;
	}

	public String getNetinaddr() {
		return netinaddr;
	}

	public void setNetinaddr(String netinaddr) {
		this.netinaddr = netinaddr;
	}

	public String getNetoutaddr() {
		return netoutaddr;
	}

	public void setNetoutaddr(String netoutaddr) {
		this.netoutaddr = netoutaddr;
	}

	public String getAdmin() {
		return admin;
	}

	public void setAdmin(String admin) {
		this.admin = admin;
	}

	public String getOperate() {
		return operate;
	}

	public void setOperate(String operate) {
		this.operate = operate;
	}

	// 增加操作
	public void addOperate(String operate) {
		if (operate == null || operate.length() == 0)
			return;
		if (this.operate == null)
			this.operate = operate;
		else
			this.operate = operate + "," + this.operate;
	}

	// 添加管理
	public void addAdmin(String admin) {
		if ("Y".equals(this.admin))
			return;

		if (("Y").equals(admin))
			this.admin = "Y";
	}

	public String getCaption() {
		return caption;
	}

	public void setCaption(String caption) {
		this.caption = caption;
	}

	public String getMenuitemid() {
		return menuitemid;
	}

	public void setMenuitemid(String menuitemid) {
		this.menuitemid = menuitemid;
	}

	public String getMenuid() {
		return menuid;
	}

	public void setMenuid(String menuid) {
		this.menuid = menuid;
	}

	public String getShowtype() {
		return showtype;
	}

	public void setShowtype(String showtype) {
		this.showtype = showtype;
	}

	public String getPagetype() {
		return pagetype;
	}

	public void setPagetype(String pagetype) {
		this.pagetype = pagetype;
	}

	public String getJsfunction() {
		return jsfunction;
	}

	public void setJsfunction(String jsfunction) {
		this.jsfunction = jsfunction;
	}

	public String getObjectid() {
		return objectid;
	}

	public void setObjectid(String objectid) {
		this.objectid = objectid;
	}

	public String getIconfile() {
		return iconfile;
	}

	public void setIconfile(String iconfile) {
		this.iconfile = iconfile;
	}

	public Float getShoworder() {
		return showorder;
	}

	public void setShoworder(Float showorder) {
		this.showorder = showorder;
	}

	public String getRoleid() {
		return roleid;
	}

	public void setRoleid(String roleid) {
		this.roleid = roleid;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

}
